  <!-- Site Showcase -->
  <div class="site-showcase">
  <!-- Start Page Header -->
  <div class="parallax page-header" style="background-image:url(http://placehold.it/1200x260&amp;text=IMAGE+PLACEHOLDER);">
  		<div class="container">
        	<div class="row">
            	<div class="col-md-12">
  					<h1><?php echo __('Submit a Property'); ?></h1>
        		</div>
           </div>
       </div>
  </div>
  <!-- End Page Header -->
  </div>
  <!-- Start Content -->
  <div class="main" role="main">
      <div id="content" class="content full">
        	<div class="container">
          		<div class="page">
        			<div class="row">
              			<div class="col-md-12">
                        	<?php echo $this->Form->create('Property', array('role' => 'form','type' => 'file')); ?>
                          <div class="block-heading" id="details">
                     			 <a href="#additionalinfo" class="btn btn-sm btn-default pull-right"><?php echo __('Additional Info'); ?> <i class="fa fa-chevron-down"></i></a>
                              <h4><span class="heading-icon"><i class="fa fa-home"></i></span><?php echo __('Property Details'); ?></h4>
                          </div>
                          <div class="padding-as25 margin-30 lgray-bg">
                              <div class="row">
                                      <div class="col-md-4 col-sm-4">
                                      <?php echo $this->Form->input('title', array('label' => false,'class' => 'form-control', 'placeholder' => 'Property name'));?>
                                      <?php echo $this->Form->input('id');?>
                                      <?php //echo $this->Form->input('slug', array('label' => false,'class' => 'form-control', 'placeholder' => 'Property name'));?>
                                      <?php //echo $this->Form->input('user_id', array('value'=>3,'type' => 'hidden','class' => 'form-control', 'placeholder' => 'Property name'));?>
                                  </div>
                                      <div class="col-md-4 col-sm-4">
										<?php echo $this->Form->input('address', array('label' => false,'class' => 'form-control', 'placeholder' => 'Address'));?>
                                  </div>
                                      <div class="col-md-4 col-sm-4">
										<?php echo $this->Form->input('location', array('label' => false,'class' => 'form-control', 'placeholder' => 'Location'));?>
                                  </div>
                              </div>
                              <div class="row">
                                      <div class="col-md-4 col-sm-4">
										<?php echo $this->Form->input('city_id', array('label' => false,'class' => 'form-control margin-0  selectpicker', 'placeholder' => 'City Id'));?>
                                  </div>
                                    <div class="col-md-8 col-sm-8 submit-description">
									<?php echo $this->Form->input('description', array('rows'=>"10" ,'cols'=>"10" ,'label' => false,'class' => 'form-control  margin-0', 'placeholder' => 'Propery Description'));?>
                                  </div>
                                  </div>
                          </div>
                          <div class="block-heading" id="additionalinfo">
                     			 <a href="#amenities" class="btn btn-sm btn-default pull-right"><?php echo __('Enter Amenities'); ?> <i class="fa fa-chevron-down"></i></a>
                              <h4><span class="heading-icon"><i class="fa fa-plus"></i></span><?php echo __('Additional Info'); ?></h4>
                          </div>
                          <div class="padding-as25 margin-30 lgray-bg">
                              <div class="row">
                                      <div class="col-md-3 col-sm-3">
									<?php echo $this->Form->input('price', array('label'=>false,'class' => 'form-control', 'placeholder' => 'Price ('.__($websiteSettings['currency_symbol']).')'));?>
                                  </div>
                                      <div class="col-md-3 col-sm-3">
									<?php echo $this->Form->input('area', array('label'=>false,'class' => 'form-control', 'placeholder' => 'Area'));?>
                                  </div>
                                      <div class="col-md-3 col-sm-3 submit-property-type">
										<?php echo $this->Form->input('property_type_id', array('label'=>false,'class' => 'form-control margin-0 selectpicker', 'placeholder' => 'Property Type Id'));?>
                                  	</div>
                                      <div class="col-md-3 col-sm-3 submit-contract-type">
										<?php echo $this->Form->input('contract_type', array('label'=>false,'empty'=>'Contract Type','options'=>$contract_type,'class' => 'form-control selectpicker', 'placeholder' => 'Contract Type'));?>
                                  </div>
                              </div>
                              <div class="row">
                              		<div class="col-md-4 col-sm-4">
										<?php echo $this->Form->input('beds', array('label'=>false,'empty'=>'Beds','options'=>$dropdown_options,'class' => 'form-control selectpicker', 'placeholder' => 'Beds'));?>
                                  	</div>
                                    <div class="col-md-4 col-sm-4">
										<?php echo $this->Form->input('baths', array('label'=>false,'empty'=>'Baths','options'=>$dropdown_options,'class' => 'form-control selectpicker', 'placeholder' => 'Baths'));?>

                                  	</div>
                                   	<div class="col-md-4 col-sm-4">
										<?php echo $this->Form->input('parking', array('label'=>false,'empty'=>'Parking','options'=>$dropdown_options,'class' => 'form-control selectpicker', 'placeholder' => 'Parking'));?>
                                  	</div>
                              </div>
                              <div class="row">
                                 	<div class="col-md-3 col-sm-3">
                                      	<label><?php echo __('Upload Images'); ?></label>
                                        <p><?php echo __('Upload images that are best clicked for better appearance of your property'); ?></p> 
                                  	</div>
                                 	<div class="col-md-3 col-sm-3 submit-image">
                                    	
                                        <?php 
										if(!empty($property['Property']['image1'])){
										$image1	=	'/files/property/thumb/'.$property['Property']['image1'];
										echo $this->Html->image($image1,array('width' => '220px','alt'=>'',"class"=>"image-placeholder"));
										}
										else
										{
											echo '<div class="image-placeholder">Image 1</div>';
										}
										 ?>
                                    	<?php echo $this->Form->input('image1', array('type' => 'file')); ?>
                                  </div>
                                 	<div class="col-md-3 col-sm-3 submit-image">
                                        <?php 
										if(!empty($property['Property']['image2'])){
										$image2	=	'/files/property/thumb/'.$property['Property']['image2'];
										echo $this->Html->image($image2,array('width' => '220px','alt'=>'',"class"=>"image-placeholder"));
										}
										else
										{
											echo '<div class="image-placeholder">Image 2</div>';
										}
										 ?>
                                         <?php echo $this->Form->input('image2', array('type' => 'file')); ?>
                                  </div>
                                 	<div class="col-md-3 col-sm-3 submit-image">
                                        <?php 
										if(!empty($property['Property']['image3'])){
										$image3	=	'/files/property/thumb/'.$property['Property']['image3'];
										echo $this->Html->image($image3,array('width' => '220px','alt'=>'',"class"=>"image-placeholder"));
										}
										else
										{
											echo '<div class="image-placeholder">Image 3</div>';
										}
										 ?>
                                         <?php echo $this->Form->input('image3', array('type' => 'file')); ?>
                                  </div>
                              </div>
                          </div>
                          <div class="block-heading" id="amenities">
                     			 <a href="#submit-property" class="btn btn-sm btn-default pull-right"><?php echo __('Submit Property'); ?> <i class="fa fa-chevron-down"></i></a>
                              <h4><span class="heading-icon"><i class="fa fa-star"></i></span><?php echo __('Amenities'); ?></h4>
                          </div>
                          <div class="padding-as25 margin-30 lgray-bg">
                              <div class="row">
                                  <div class="col-md-2 col-sm-2 col-xs-6">
					<?php echo $this->Form->input('air_conditioning', array('placeholder' => 'Air Conditioning'));?>
                                  </div>
                                  <div class="col-md-2 col-sm-2 col-xs-6">
					<?php echo $this->Form->input('heating', array( 'placeholder' => 'Heating'));?>
                                  </div>
                                  <div class="col-md-2 col-sm-2 col-xs-6">
					<?php echo $this->Form->input('balcony', array( 'placeholder' => 'Balcony'));?>
                                  </div>
                                  <div class="col-md-2 col-sm-2 col-xs-6">
					<?php echo $this->Form->input('dishwasher', array( 'placeholder' => 'Dishwasher'));?>
                                  </div>
                                  <div class="col-md-2 col-sm-2 col-xs-6">
					<?php echo $this->Form->input('pool', array( 'placeholder' => 'Pool'));?>
                                  </div>
                                  <div class="col-md-2 col-sm-2 col-xs-6">
					<?php echo $this->Form->input('internet', array( 'placeholder' => 'Internet'));?>
                                  </div>
                              </div>
                              <div class="row">
                                  <div class="col-md-2 col-sm-2 col-xs-6">
					<?php echo $this->Form->input('terrace', array( 'placeholder' => 'Terrace'));?>
                                  </div>
                                  <div class="col-md-2 col-sm-2 col-xs-6">
					<?php echo $this->Form->input('microwave', array( 'placeholder' => 'Microwave'));?>
                                  </div>
                                  <div class="col-md-2 col-sm-2 col-xs-6">
					<?php echo $this->Form->input('fridge', array( 'placeholder' => 'Fridge'));?>
                                  </div>
                                  <div class="col-md-2 col-sm-2 col-xs-6">
					<?php echo $this->Form->input('cable_tv', array( 'placeholder' => 'Cable TV'));?>
                                  </div>
                                  <div class="col-md-2 col-sm-2 col-xs-6">
					<?php echo $this->Form->input('security_camera', array( 'placeholder' => 'Security Camera'));?>
                                  </div>
                                  <div class="col-md-2 col-sm-2 col-xs-6">
					<?php echo $this->Form->input('toaster', array( 'placeholder' => 'Toaster'));?>
                                  </div>
                              </div>
                              <div class="row">
                                  <div class="col-md-2 col-sm-2 col-xs-6">
					<?php echo $this->Form->input('grill', array( 'placeholder' => 'Grill'));?>
                                  </div>
                                  <div class="col-md-2 col-sm-2 col-xs-6">
					<?php echo $this->Form->input('oven', array( 'placeholder' => 'Oven'));?>
                                  </div>
                                  <div class="col-md-2 col-sm-2 col-xs-6">
					<?php echo $this->Form->input('fans', array( 'placeholder' => 'Fans'));?>
                                  </div>
                                  <div class="col-md-2 col-sm-2 col-xs-6">
					<?php echo $this->Form->input('servants', array( 'placeholder' => 'Servants'));?>
                                  </div>
                                  <div class="col-md-2 col-sm-2 col-xs-6">
					<?php echo $this->Form->input('furnished', array( 'placeholder' => 'Furnished'));?>
                                  </div>
                                  <div class="col-md-2 col-sm-2 col-xs-6">
					<?php echo $this->Form->input('cupboards', array( 'placeholder' => 'Cupboards'));?>
                                  </div>
                              </div>
                          </div>
<div class="block-heading" id="amenities">
                     			 <a href="#submit-property" class="btn btn-sm btn-default pull-right"><?php echo __('Submit Property'); ?> <i class="fa fa-chevron-down"></i></a>
                              <h4><span class="heading-icon"><i class="fa fa-cog fa-spin"></i></span><?php echo __('Published'); ?></h4>
                          </div>
                          <div class="padding-as25 margin-30 lgray-bg">
                           <div class="row">
                                      <div class="col-md-6 col-sm-6">
                                      <label><?php echo __('Published On'); ?></label>
										<?php echo $this->Form->input('published_on', array('label' =>false,'minYear' => date('Y'),
    'maxYear' => date('Y') + 1,'style'=>'width:32%','class' => 'form-control col-md-4 col-sm-4', 'placeholder' => 'Published On'));?>
                                  </div>
                                  
                                  <div class="col-md-12 col-sm-12 col-xs-12">
					<?php echo $this->Form->input('active', array( 'placeholder' => 'Active'));?>
                                  </div>
                                </div>
                                </div>
                          <div class="text-align-center" id="submit-property">
                            <?php echo $this->Form->submit(__('Submit'), array('class' => 'btn btn-primary btn-lg')); ?>
                          </div>
                        	<?php echo $this->Form->end() ?>
                   	</div>
          			</div>
        		</div>
      		</div>
    	</div>
  </div>
